﻿using System.Collections.Generic;

namespace Coding4Fun.Cannon.Robot.Types
{
	public class BatteryVoltage
	{
		public BatteryVoltage(IList<int> data)
		{
			MainBattery = 55.0 * data[data.Count - 2] / 256;
			Internal12VoltSupply = 28.5 * data[data.Count - 1] / 256;
		}

		public double MainBattery
		{ get; set; }

		public double Internal12VoltSupply
		{ get; set; }
	}
}